package com.paomi.client.fragment.collection;

import android.support.annotation.NonNull;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.widget.TextView;

import com.chad.library.adapter.base.BaseViewHolder;
import com.paomi.client.R;
import com.paomi.client.base.BaseLCEActivity;
import com.paomi.client.base.BaseLCEFragment;
import com.paomi.client.bean.CpllectionInfo;
import com.paomi.client.fragment.collection.presenter.CollectShopPresenter;

import butterknife.BindView;

/**
 * Created by pc on 2019/1/29
 * Describe:收藏的周边列表
 * com.paomi.client.fragment.collection
 */
public class CollectShopFragment extends BaseLCEFragment<CpllectionInfo, CollectShopPresenter> {
    @BindView(R.id.list_collect)
    RecyclerView listCollect;

    @NonNull
    @Override
    protected int getFragmentLayoutId() {
        return R.layout.fragment_recycler;
    }

    @NonNull
    @Override
    protected RecyclerView createRecycler() {
        return listCollect;
    }

    @Override
    protected int getItemLayout() {
        return R.layout.item_collection;
    }

    @Override
    protected void initEmpty(TextView empty) {
        empty.setTextSize(15);
        empty.setCompoundDrawablesWithIntrinsicBounds(0, R.mipmap.img_collection_empty, 0, 0);
        empty.setText(getResources().getString(R.string.empty_collection));
    }

    @Override
    protected void convert(BaseViewHolder helper, CpllectionInfo item) {

    }

    @Override
    protected void onItemClick(View view, CpllectionInfo item) {

    }

    @NonNull
    @Override
    public CollectShopPresenter createPresenter() {
        return new CollectShopPresenter();
    }
}
